/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xml.judge;

import beans.Judge;

/**
 *
 * @author heinen
 */
public class testJudge {
    
    public static void main(String[] args) {
        Judge judge = new Judge();
        judge.setId(1l);
        judge.setBjcpId("abc123");
        judge.setEmail("aa@aa.aa");
        judge.setName("teste");
        judge.setSenha("teste");
        JudgeWriter writer = new JudgeWriter();
        writer.print(judge);
        System.out.println("Success");
        
        JudgeReader reader = new JudgeReader();
        Judge j = reader.getJudgeByName("teste");
        if (j != null) {
            System.out.println(j);
        } else {
            System.out.println("Not found beer with name = teste");
        }
    }
    
}
